#define _CRT_SECURE_NO_WARNINGS
#include"SLList.h"

void test1()
{
	SLListNode* plist = NULL;
	//plist = BuySLListNode(6);
	//SLListPrint(plist);

	SLListPushBack(&plist, 9);
	SLListPrint(plist);

	SLListPushFront(&plist, 10);
	SLListPrint(plist);

	SLListPushBack(&plist, 9);
	SLListPrint(plist);

	SLListPushFront(&plist, 10);
	SLListPrint(plist);	
	
	SLListPushBack(&plist, 9);
	SLListPrint(plist);

	SLListPushFront(&plist, 10);
	SLListPrint(plist);

	SLListDestroy(&plist);
	//SLListPopBack(&plist);
	//SLListPrint(plist);

	//SLListPopFront(&plist);
	//SLListPrint(plist);

	//SLListNode* n = SLListFind(plist, 6);
	//if(n)
	//printf("%d\n", n->data);

}

int main()
{
	test1();
	return 0;
}